home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 …ember: Reference Library / Dev.CD Dec 98 RL1.toast / What's New / Tool Chest / MacApp / Ad Lib 3.0a4 / Converting Old Views < prev   
Encoding:
Text File  |  1998-10-14  |  2.0 KB  |  54 lines  |  [ttro/ttxt]

  1. Converting Old Views
  2. October 12, 1998
  3.  
  4. Steps for converting old views to Ad Lib 3 views:
  5.  
  6. 1) Open the old .view file with Ad Lib 3.0. A dialog will come up asking, "Do you want to convert old MacApp 3 views to Release 13 views?"
  7.  
  8. 2) Click on "Convert Views".
  9.  
  10. If an error message appears, or nothing seems to happen, Ad Lib was unable to convert one or more of the views in the document. Go to section "Conversion Problems" below.
  11.  
  12. 3) The document window appears, with each window and view marked with "•". Some or all of your Templates may be gone. (See section on Templates, below)
  13.  
  14. 4) Perform step 4 in "Conversion Problems".
  15.  
  16. 5) Save the converted document.
  17.  
  18. Conversion Problems
  19.  
  20. If the automatic conversion did not work, try converting manually.
  21.  
  22. 1) Open the old .view file, but click "Cancel" when asked whether to convert. If prompted to Rebuild Tables, click "Don't Rebuild".
  23.  
  24. 2) The document window appears. Check the "View Creation by Name" flag in the View menu. 
  25.  
  26. 3) Try opening each window and view individually. If Ad Lib cannot open an item, you will probably have to recreate it manually. 
  27.  
  28. 4) Special handling is required for TPopups. Currently they are not converted correctly. You will have to set the Menu Resource ID field and probably the view width manually.
  29.  
  30.  
  31. Templates
  32.  
  33. Templates are no longer needed for the following classes, because they are supported directly by Ad Lib 3.0: 
  34.  
  35.     TBottomSizer, TRightSizer, TMultiSizer
  36.     TChasingArrows
  37.     TDisclosureTriangle
  38.     TIconButton, TIconCheckBox, TIconPopup, TIconRadio
  39.     TPrimaryCluster, TSecondaryCluster
  40.     TProgressIndicator
  41.     TSeparator
  42.     TSizer
  43.     TSizeToParent
  44.     TSlider
  45.     TStickToBottomOfParent, TStickToRightOfParent, TStickToBottomRightOfParent
  46.     TTabbedView
  47.     TUpDownControl
  48.  
  49. When you convert your old view documents, if "Delete Obsolete Templates" was checked (the default), then any templates in your document with these names will be deleted. Hopefully the fields defined in the old templates matches the fields written by the R13 WriteFields method for the class. If the fields don't match, Ad Lib cannot convert the object.
  50.  
  51.  
  52.  
  53.  
  54.